from gxl_ai_utils.utils import utils_file

def main():
    """"""
    # utils_file.get_file_path_list_for_wav_dir('./', suffix='acc')
    wav_list = utils_file.get_file_path_list_for_wav_dir('./', suffix='aac')
    wav_dict = {}
    text_dict = {}
    for wav in wav_list:
        wav_name = utils_file.get_file_pure_name_from_path(wav)
        wav_dict[wav_name] = wav
        text_dict[wav_name] = wav_name
    utils_file.write_dict_to_scp(wav_dict, './wav.scp')
    utils_file.write_dict_to_scp(text_dict, './text')
    utils_file.do_convert_wav_text_scp_to_jsonl('./wav.scp', './text', './data.list')



if __name__ == "__main__":
    main()